<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/28/0028
 * Time: 9:40
 */

namespace app\sports_admin\model;


use think\Model;

class Rule extends Model
{
    protected $table = 'rule';

    protected $pk = 'id';

    protected $autoWriteTimestamp = true;

    protected $hidden = ['create_time','update_time'];

    //获取权限
    public static function ruleList()
    {
        return self::where('scope','<>',128)->select();
    }
}